﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Text;
using System.Web.UI.WebControls;
using Showroom.BLL;
using System.IO;

namespace ShowroomMobile
{
    public partial class AboutUs : System.Web.UI.Page
    {
        private int ProductID
        {
            get
            {
                return string.IsNullOrEmpty(Request["id"]) ? 0 : Convert.ToInt32(Request["id"]);
            }
        }

        private int CategoryID
        {
            get
            {
                return string.IsNullOrEmpty(Request["cid"]) ? 0 : Convert.ToInt32(Request["cid"]);
            }
        }

        protected string FacebookCommentLink
        {
            get
            {
                return Request.Url.ToString();
            }
        }

        protected int TotalPicture
        {
            get;
            set;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (File.Exists(Server.MapPath("StaticPages/about.txt")))
                {
                    Page.Title = "About Us";
                    string content = File.ReadAllText(Server.MapPath("StaticPages/about.txt"));
                    litContent.Text = content;
                }
            }
        }
    }
}